import Vue from 'vue'
import App from './App.vue'
import router from './router'
import vuetify from './plugins/vuetify'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import Vuex from 'vuex'
import store from './store/store'
import echarts from 'echarts'



// 引入axios
import axios from 'axios'
Vue.prototype.$axios = axios
Vue.prototype.$http = axios
Vue.use(ElementUI)
Vue.use(Vuex)
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
// 利用'/api'为基准地址，实现跨域。
axios.defaults.baseURL='/api'
Vue.config.productionTip = false




new Vue({
  router,
  vuetify,
  store,
  render: h => h(App)
}).$mount('#app')
